@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

::-webkit-scrollbar {
  /*滚动条整体样式*/
  /*高宽分别对应横竖滚动条的尺寸*/
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  /*深色模式*/
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #eee;

  /*浅色模式*/
  /*-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  background: rgb(245, 245, 245);
  border: 1px solid #333;
  border-bottom-width: 2px;*/
}

// ::-webkit-scrollbar-track {
//   /*滚动条里面轨道*/
//   -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
//   border-radius: 10px;
//   background: #eee;
// }

#app {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-dialog:not(.is-fullscreen) {
  margin-top: 6vh !important;
}

.el-table {
  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #f8f8f9;
      color: #515a6e;
      height: 40px;
      font-size: 13px;
    }
  }
}

/** 表单布局 **/
.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px;
}

/** 表格布局 **/
.el-table .fixed-width .el-button--mini {
  @include text_btn_color($color-theme2-1);
  padding-left: 0;
  padding-right: 0;
  width: inherit;
}

.el-table .cell .el-button--text, .el-table .fixed-width .el-button--mini {
  @include text_btn_color($color-theme2-1);
}

.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}

.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0px;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px 20px 20px 20px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48d1cc;
  border-color: #48d1cc;
  color: #ffffff;
}

.el-button--cyan {
  background-color: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

/* text color */
.text-navy {
  color: #1ab394;
}

.text-primary {
  color: inherit;
}

.text-success {
  color: #1c84c6;
}

.text-info {
  color: #23c6c8;
}

.text-warning {
  color: #f8ac59;
}

.text-danger {
  color: #ed5565;
}

.text-muted {
  color: #888888;
}

/* image */
.img-circle {
  border-radius: 50%;
}

.img-lg {
  width: 120px;
  height: 120px;
}

.avatar-upload-preview {
  position: absolute;
  top: 50%;
  transform: translate(50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
  overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost {
  opacity: 0.8;
  color: #fff !important;
  background: #42b983 !important;
}

.top-right-btn {
  position: relative;
  float: right;
}

.tag-input {
  width: 240px;
  display: flex;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  align-items: center;
  padding: 0 15px;
  overflow: hidden;
  height: 32px;
  background-color: #fff;
  .tag-place {
    color: #bbb;
    font-size: 14px;
  }
}
.mid-action {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  align-items: center;
  .total {
    border-radius: 3px;
    font-size: 14px;
    min-height: 32px;
    line-height: 32px;
    padding: 0 12px;
    color: #606266;
  }
  .num {
    @include text_btn_color($color-theme2-1);
  }
}

.left-tree.el-tree {
  background: transparent;
  line-height: 30px;
  .el-tree-node__content {
    height: auto;
  }
  .fr {
    [class^='el-icon-'] {
      margin-left: 8px;
    }
    .el-icon-edit-outline, .el-icon-circle-plus-outline {
      @include text_btn_color($color-theme2-1);
    }
    .el-icon-delete {
      color: $red;
    }
  }
}

.btn-reset {
  @include btn_reset_color($color-theme2-1)
}
// 下拉选项边框为主题色
.dropdown-reset {
  button {
    @include btn_reset_color($color-theme2-1);
  }
  .el-button-group {
    .el-dropdown__caret-button::before {
      @include btn_color($color-theme2-1);
    }
  }
}

.user-profile-form {
  width: 480px;
  .el-form-item:not(:nth-child(2)) {
    display: flex;
    flex-direction: column;
    .el-form-item__content {
      margin-left: 0!important;
    }
  }
  .el-form-item:nth-child(2) {
    .el-form-item__label {
      width: 50px!important;
    }
    .el-form-item__content {
      margin-left: 60px!important;
    }
  }
  .el-form-item__label {
    text-align: left;
  }
}
.user-info-tab {
  .el-tabs__header, .el-tabs__content {
    padding-top: 20px;
  }
  .el-tabs__item {
    width: 200px;
    text-align: left!important;
  }
  .el-tabs__active-bar {
    @include border_color();
  }
  .el-tabs__item.is-active {
    @include list_item_selected_color($color-theme2-1, $color-theme2-3);
    @include border_style($direction: right, $width: 3px);
  }
  .el-tabs__item:hover {
    @include list_item_hover_color($color-theme2-4);
  }
  .el-tabs__header.is-left {
    margin-right: 0!important;
  }
  .el-tabs__content {
    padding-left: 10px;
    border-left: 1px solid #d7d7d7;
  }
}
.user-pwd-form {
  .el-form-item {
    display: flex;
    flex-direction: column;
    .el-form-item__content {
      margin-left: 0!important;
    }
    .el-form-item__label {
      text-align: left;
    }
  }
  
}
.cus-owner {
  font-size: 14px;
  color: #333;
}
.cus-dept {
  font-size: 12px;
  color: #666;
}
.my-cascader {
  .el-cascader-panel .el-radio {
    width: 132px;
    height: 34px;
    line-height: 34px;
    padding: 0 10px;
    z-index: 10;
    position: absolute;
  }
  .el-cascader-panel .el-radio__input {
    visibility: hidden;
  }
}
// 设置color为主题色
.theme-text-color {
  @include text_btn_color($color-theme2-1);
}

// 设置列表项被选中时为对应主题列表选中色
.theme-list-selected-color {
  @include list_item_selected_color($color-theme2-1, $color-theme2-3);
}

// 设置列表项移入时为对应主题列表移入色
.theme-list-hover-color {
  &:hover {
    @include list_item_hover_color($color-theme2-4);
  }
}